package com.biz.primus.model.misc.exception;

import com.biz.primus.base.exception.ExceptionType;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * SmsExceptions
 *
 * @author JKLiues
 * @date 2017年10月26日
 */
@Getter
@AllArgsConstructor
public enum SmsExceptions implements ExceptionType {
    USER_NOT_EXIST(7900, "用户不存在"),
    MOBILE_NOT_FOUND(7901, "找不到用户手机号"),
    MOBILE_ERROR(7902, "手机号不能为空"),
    USER_ALREADY_EXIST(7903, "用户已存在"),
    SMS_SEND_TIME_INVALID(7904, "短信不可发送"),
    MISSING_REQUIRED_PARAMS(7905, "缺少参数"),
    SMS_TYPE_IS_NULL(7906, "短信类型不能为空"),
    SMS_TEMPLATE_NOT_FOUND(7907, "短信模板找不到"),
    SERVER_NOT_AVAILABLE(7910, "服务不可用");
    private int code;
    private String description;
}